﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FullRefreshService.Logging
{
    public class UpdateLogger : ILogger
    {
        public event EventHandler<LoggingEventArgs> Updated;

        #region ILogger Members

        public void WriteLine(string message)
        {
            if (Updated != null)
            {
                LoggingEventArgs args = new LoggingEventArgs
                {
                    Message = message
                };
                Updated(this, args);
            }
        }

        #endregion
    }
}
